//
//  MyorderTableViewCell.m
//  囧途
//
//  Created by fly on 16/3/7.
//  Copyright © 2016年 fly. All rights reserved.
//

#import "MyorderTableViewCell.h"

@interface MyorderTableViewCell ()
@property(nonatomic, strong)UILabel * location;

@property(nonatomic, strong)UILabel * aim;
@end

@implementation MyorderTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        [self initializeInterface];
    }
    return self;
}

-(void)initializeInterface
{

    _location = ({
        
        UILabel * label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 180, 80)];
        
        label.font = [UIFont systemFontOfSize:15];
        
        label.numberOfLines = 0;
        
        label.textColor = [UIColor colorWithRed:169/255.0 green:64/255.0 blue:60/255.0 alpha:1];
        
        label.backgroundColor = [UIColor grayColor];
        
//        label.tintColor = [UIColor whiteColor];
        
        label.textAlignment = NSTextAlignmentCenter;
        
        label;
    });
    
    [self.contentView addSubview:_location];
    
    _aim = ({
        
        UILabel * label = [[UILabel alloc]initWithFrame:CGRectMake(196, 0, 180, 80)];
        
        label.font = [UIFont systemFontOfSize:15];
        
        label.textColor = [UIColor colorWithRed:169/255.0 green:64/255.0 blue:60/255.0 alpha:1];
        
        label.backgroundColor = [UIColor grayColor];
        
        label.textAlignment = NSTextAlignmentCenter;
        
        label;
    });
    
    [self.contentView addSubview:_aim];

    

}



@end
